package cn.leyaber.hrm.domain;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ma.rui.kai
 * @since 2020-10-21
 */
//发布
@TableName("user_Post")
public class Post extends Model<Post> {

    private static final long serialVersionUID = 1L;

    private Long id;
    @TableField("user_id")
    private Long userId;
    private String title;
    private String content;
    private Date time;
    private Integer state;

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @TableField("Number_of_reports")
    private Integer numberOfReports;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getNumberOfReports() {
        return numberOfReports;
    }

    public void setNumberOfReports(Integer numberOfReports) {
        this.numberOfReports = numberOfReports;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Post{" +
        ", id=" + id +
        ", userId=" + userId +
        ", title=" + title +
        ", content=" + content +
        ", time=" + time +
        ", numberOfReports=" + numberOfReports +
        ",state"+ state+
        "}";
    }
}
